import { get, post, del, put } from '@/api/axios'
export let list = (params: any) => get("/role/page", params)
export let getById = (params: any) => get("/role", params)
export let roleAll = (params: any) => get("/role/all", params)
export let remove = (data: any) => del("/role", data)
export let add = (data: any) => post("/role", data)
export let edit = (data: any) => put("/role", data)
export let exportList = (params: any) => get("/role/export", params, true)
export let template = (params: any) => get("/role/template", params, true)
export let importData = (data: any) => post("/role/import", data)